import appConfig from 'AppConfig/index';
export class Doomm {
    constructor(text, top, time) {  //内容，顶部距离，运行时间，颜色（参数可自定义增加）
        this.text = text;
        this.top = top;
        this.time = time;
        let _time = setTimeout(()=>{
            this.time = 0;
        }, time*1000);
        if( !appConfig.setTimeoutArr ) appConfig.setTimeoutArr = [];
        appConfig.setTimeoutArr.push(_time);
    }
}
